package com.twu.biblioteca.actions;

import com.twu.biblioteca.exceptions.BaseError;
import com.twu.biblioteca.models.ExitManager;

public class QuitAction extends BaseAction {
    private ExitManager exitManager;

    public QuitAction(ExitManager anExitManager){
        exitManager = anExitManager;
    }

    @Override
    public void run() throws BaseError {
        exitManager.exit(1);
    }

    @Override
    public String actionName() {
        return "Quit";
    }
}
